package com.crazymakercircle.syncontainer;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description
 * @Date 2021/6/21
 * @Created by Jonathan
 */
@Slf4j
public class HashmapDemo {
    public static void main(String[] args) {
        ConcurrentHashMap<Object, Object> map = new ConcurrentHashMap<>();
        map.put("1", 1);
        Integer num = 1;
        Integer num2 = 3;
        Integer ret = null;
        print(1, ret = num + num2);
        log.info("ret:{}", ret);
    }

    private static void print(Integer integer, Integer s) {
        log.info("sum:{}", integer + s);

    }
}
